package com.bw.lk.user.control;

import javax.servlet.FilterChain;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class AutoFilter {
	public void doFilter(HttpServletRequest request,
			HttpServletResponse response,FilterChain chain){
		Cookie[] cookies = request.getCookies();
		if(cookies != null){
			for (Cookie cookie : cookies) {
				if(cookie.getName().equals("autoLogin")){
					String name = cookie.getName();
					String value = cookie.getValue();
					break;
				}
			}
		}
	}
}
